package com.fushenlan.epidemicControl.service;

import com.fushenlan.Vo.BuildInfoVo;
import com.fushenlan.commons.GeneralResponse;
import com.fushenlan.epidemicControl.dto.BuildingInfoDto;
import com.fushenlan.po.BuildingInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author XUJIN
 * @DATE 2022/4/21
 * @PACKAGE_NAME com.fushenlan.epidemicControl.service
 * @VERSION 1.0
 */
public interface BuildingInfoService {


    GeneralResponse addBuildingInfo(Integer parentId,String communityName,String buildNo,String roomNo);

    List<BuildingInfo> findBuildInfoList(BuildingInfo buildingInfo);

    List<BuildInfoVo> findBuildList(BuildingInfoDto buildingInfoDto);

    GeneralResponse updateBuildingInfo(Integer id, String communityName, String buildNo, String roomNo);

    void deleteBuildinginfo(Integer id);

    void downloadBuildModel(List<?> list,HttpServletResponse response);


    void exportBuildInfo(Integer neighborId, HttpServletResponse response);

    void uploadBuildList(Integer neighborId, MultipartFile multipartFile,HttpServletResponse response) throws Exception;
}
